﻿using Rocket.API;

namespace MachineBanned
{
    public class MachineBannedConfig : IRocketPluginConfiguration, IDefaultable
    {
        public string DatabaseIP;
        public int DatabasePort;
        public string DatabaseName;
        public string DatabaseUserName;
        public string DatabasePassword;
        public string HwidInfoTableName;
        public string HwidLogTableName;
        public int DefaultBannedTime;

        public void LoadDefaults()
        {
            DatabaseIP = "yunstation.work";
            DatabasePort = 36002;
            DatabaseName = "unturned";
            DatabaseUserName = "unturned";
            DatabasePassword = "abc123456";
            HwidInfoTableName = "hwidinfo";
            HwidLogTableName = "hwidlog";
            DefaultBannedTime = 10;
        }
    }
}
